4. Scripts

Important! Some of the scripts will make changes to existing files! Make sure to commit any changes before running a script! This way you can roll back if something goes wrong.

4.1. mt-quickstart

This script will generate:
  1. The skeleton of a tenant resolver
  2. Domain class to represent tenants
  3. Simple tenant repository implementation

You will have to update grails-app/conf/Config.groovy and grails-app/conf/spring/resources.groovy after running this script.

Example: grails mt-quickstart com.yourapp DomainTenantResolver CachingTenantRepository Customer